package com.ds.lens.data.service.esservice;

import com.ds.lens.data.common.document.dynamic.DynamicDetectionResult;
import com.ds.lens.data.service.repository.DynamicDetectionResultRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Service;

/**
 * Description:
 *
 * @author WeiShaoying
 * @date 2020-05-19
 */
@Service
public class DynamicDetectionResultOperateService extends AbstractIndexOperateService<DynamicDetectionResult> {

    @Autowired
    DynamicDetectionResultRepository resultRepository;

    @Override
    protected Class<DynamicDetectionResult> getIndexClass() {
        return DynamicDetectionResult.class;
    }

    @Override
    protected ElasticsearchRepository<DynamicDetectionResult, String> getIndexRepository() {
        return resultRepository;
    }


}
